<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div>
    <swiper :imgList="imgList"></swiper>        // 封装swiper组件
  </div>
</template>
<script>
import swiper from '../components/swiper.vue' // 引入轮播图组件
export default {
  data () {
    return {
      imgList: [
      {id: 1, src: 'http://…'},
      {id: 2, src: 'http://…'}
      ]
    }
  },
  components: {
    swiper   // 创建轮播图节点
  }
}
</script>
